import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/pages/Login' // 登陆
import Register from '@/pages/Register' // 注册
import Mainpage from '@/pages/Mainpage'// 主界面
import Clockinpage from '@/pages/Clockinpage'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/Register',
      name: 'Register',
      component: Register
    },
    {
      path: '/Mainpage',
      name: 'Mainpage',
      component: Mainpage
    },
    {
      path: '/Clockinpage',
      name: 'Clockinpage',
      component: Clockinpage
    }
  ]
})
